package coder.nav.model.bo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class NavSaveCashBO implements Serializable {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("年")
    @NotNull
    private Integer year;

    @ApiModelProperty("月")
    @NotNull
    private Integer month;

    @ApiModelProperty("日")
    @NotNull
    private Integer day;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("消费标识: 0支出 1收入")
    @NotNull(message = "请选择收支")
    private Integer flag;

    @ApiModelProperty("消费金额: 绝对值")
    @NotNull(message = "请输入消费金额")
    private BigDecimal money;

    @ApiModelProperty("支付渠道: 0银联 1微信 2支付宝")
    @NotNull(message = "请选择支付渠道")
    private Integer channel;

    @ApiModelProperty("消费类型: 0其他 1饮食 2购物 3通讯 4通勤 5娱乐 6房租")
    @NotNull(message = "请选择消费类型")
    private Integer type;

    @ApiModelProperty("备注")
    private String remark;

}
